package Factory.NetworkConnection;

import java.util.ArrayList;
import java.util.List;

import Factory.Framework.NetworkConnection;
import Factory.Framework.NetworkConnectionFactory;

public class POP3ConnectionFactory extends NetworkConnectionFactory{
    private List<String> id = new ArrayList<>();
    @Override
    public NetworkConnection createNetwork(String id) {
        return new POP3Connection(id);
    }
    @Override
    public void registerNetwork(NetworkConnection nwc) {
        id.add(((POP3Connection)nwc).getId());
    }
    public List<String> getId() {
        return id;
    }

}
